//package com.acxy.cms.rule;
//
//
//import org.jsoup.Jsoup;
//import org.jsoup.nodes.Document;
//import org.jsoup.nodes.Element;
//import org.jsoup.select.Elements;
//
//import java.io.File;
//import java.io.IOException;
//
///**
// * @author MrShun
// * @version 1.0
// * @Date 2017-09-20
// */
//public class JdRule {
//
//    public static void main(String[] args) throws IOException {
//        Document doc = Jsoup.connect("http://www.cnblogs.com/wanghaomiao/p/4899355.html").get();
//        String title = doc.title();
//        Element body = doc.body();
//        System.out.println(body);
//        Elements select = body.select("//div");
//        System.out.println(select);
////        File input = new File("c:\\input.html");
////        Document doc = Jsoup.parse(input, "UTF-8", "http://www.cnblogs.com/wanghaomiao/p/4899355.html");
////
////        Elements links = doc.select("a[href]"); //带有href属性的a元素
////
////        Elements pngs = doc.select("img[src$=.png]");
////        //扩展名为.png的图片
////
////        Element masthead = doc.select("div.masthead").first();
////        //class等于masthead的div标签
////
////        Elements resultLinks = doc.select("h3.r > a"); //在h3元素之后的a元素
//    }
//}
